const defaultProps = {
    showSorterTooltip: false,
    size: "small"
}
const antdTablePropKeys = ['showSorterTooltip', 'size', 'dataSource', 'rowKey', 'rowSelection', 'onRow'];
function pick(object, keys) {
    return keys.reduce((obj, key) => {
        if (object && key in object) {
            obj[key] = object[key];
        }
        return obj;
    }, {});
}
export default function (props = {}, updates = {}) {
    let d = { ...defaultProps, ...props, ...updates };
    return pick(d, antdTablePropKeys);
}